﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DataAccessLayer.DAL;

namespace BestBuy.UserViews
{
    public partial class ListAuctions : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            LoadAuctions();
        }

        private void LoadAuctions()
        {
            gvAuctions.DataSource = AuctionDAL.GetAllOpenAuction();
            gvAuctions.DataBind();
            gvEndAuctions.DataSource = AuctionDAL.GetAllEndAuction();
            gvEndAuctions.DataBind();
        }

    }
}